#!/usr/bin/php
<?PHP
date_default_timezone_set('America/New_York');

require("/http/matchtest/classes/class.phpmailer.php");

        $mail = new phpmailer();

        $mail->IsSendmail();                                      // set mailer to use SMTP
        $mail->Host = "smtp.gmail.com";        //
        $mail->From = "scriptserver@aimatch.com";
        $mail->FromName = "GMAIL TEST";
        $mail->SMTPAuth = "true";
        $mail->Username = "aimatchrobc@gmail.com";
        $mail->Password = "@1m@tchr0bc";
        $mail->AddAddress("rob@aimatch.com");
        $mail->AddReplyTo("rob@aimatch.com", "Robert Cox");

        $mail->WordWrap = 65;                                 // set word wrap to 65 characters
        $mail->IsHTML(true);                                  // set email format to HTML


        $mail->Subject = "GMAIL: Test Email ";
        $mail->Body    = "This is a test";

        if(!$mail->Send())
        {
            echo "Message could not be sent. <p>";
            echo "Mailer Error: " . $mail->ErrorInfo;
            exit;
         }
?>
